
import request from '@/utils/request'

const prefix = '/asset/apply/v1/'

// 用户数量和商户数量
export function getplatformMCCount(params) {
    return request({
        url: `/waiting/center/platformMCCount`,
        method: 'get',
        params
    })
}

// 代办任务未处理条数
export function countByType(params) {
    return request({
        url: `/waiting/process/countByType`,
        method: 'get',
        params
    })
}

// 代办任务列表
export function getlist(params) {
    return request({
        url: `/waiting/process/list`,
        method: 'get',
        params
    })
}

// 代办任务列表
export function getIndex(params) {
    return request({
        url: `/waiting/process/index`,
        method: 'get',
        params
    })
}


// 商家发布资产排行
export function releaseAssetTopN(params) {
    return request({
        url: `/waiting/center/releaseAssetTopN`,
        method: 'get',
        params
    })
}

// 商家发布资产排行
export function customerHotTopN(params) {
    return request({
        url: `/waiting/center/customerHotTopN`,
        method: 'get',
        params
    })
}

// 商家活跃度排行
export function livenessServiceTopN(params) {
    return request({
        url: `/waiting/center/livenessServiceTopN`,
        method: 'get',
        params
    })
}

// 新加
export function getplatformMCCountV2(params) {
    return request({
        url: `/waiting/center/platformMCCountV2`,
        method: 'get',
        params
    })
}

// 交易数据汇总
export function waitingCenterGetBillSummary(data) {
    return request({
        url: '/waiting/center/getBillSummary',
        method: 'post',
        data
    })
}

// 查询代办事项列表数量
export function waitingProcessNum(params) {
    return request({
        url: '/waiting/process/getWaitingProcessNum',
        method: 'get',
        params
    })
}

// 交易数据汇总V2
export function waitingCenterGetBillSummaryV2(data) {
    return request({
        url: '/waiting/center/getBillSummaryV2',
        method: 'post',
        data
    })
}

// 新增 快捷入口
export function addQuickEntryV1(data) {
    return request({
        url: '/quick/entry/v1',
        method: 'post',
        data
    })
}
// 编辑 快捷入口
export function updateQuickEntryV1(data) {
    return request({
        url: '/quick/entry/v1',
        method: 'put',
        data
    })
}
// 快捷入口详情
export function quickEntryV1Detail(id) {
    return request({
        url: `/quick/entry/v1/detail/${id}`,
        method: 'get',
    })
}
// 编辑 快捷入口排序
export function editSortQuickEntryV1(data) {
    return request({
        url: '/quick/entry/v1/editSort',
        method: 'put',
        data
    })
}
// 快捷入口列表
export function quickEntryV1GetList() {
    return request({
        url: '/quick/entry/v1/getList',
        method: 'get',
    })
}
// 删除 快捷入口
export function delQuickEntryV1(id) {
    return request({
        url: `/quick/entry/v1/${id}`,
        method: 'delete',
    })
}
// 解决待办事项
export function waitingProcessSolve(params) {
    return request({
        url: '/waiting/process/solve',
        method: 'put',
        params
    })
}